import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	volume_list: apix + '/welfare/volume/list',
	volume_export: apix + '/welfare/volume/export',
	welfare_volume: apix + '/welfare/volume',
	// welfare_volume: apix + '/welfare/volume',
	welfare_volumeId: apix + '/welfare/volume/',
}

//查询租房信息列表
export function volumeList(obj) {
	return request.get(api.volume_list, {
		...obj
	})
}
//导出租房信息列表
export function volumeExport(obj) {
	return request.post(api.volume_export, {
		...obj
	})
}
//获取租房信息详细信息
export function volumeId(id) {
	return request.get(api.welfare_volumeId + id)
}
//新增租房信息
export function addvolume(obj) {
	return request.post(api.welfare_volume, {
		...obj
	})
}
//修改租房信息
export function putvolume(obj) {
	return request.put(api.welfare_volume, {
		...obj
	})
}
//删除租房信息
export function delvolume(id) {
	return request.delete(api.welfare_volumeId + id)
}